package com.itheima.boottlias.service;

import com.itheima.boottlias.domain.pojo.Student;
import com.itheima.boottlias.domain.query.QueryParam;
import com.itheima.boottlias.domain.vo.PageResult;

/**
 * @author ghy
 * @version 1.0
 * @since 2025-07-15 11:14
 */
public interface StudentService {
    PageResult<Student> pageQuery(QueryParam queryParam);

    void add(Student student);

    void deleteByIds(Integer[] ids);

    Student findById(Integer id);

    void update(Student student);

    /**
     * 违纪处理
     * @param id 违纪人ID
     * @param score 扣除分数
     */
    void violation(Integer id, Short score);
}
